package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 优惠券表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_coupon")
@ApiModel(value = "XhCoupon对象", description = "优惠券表")
public class XhCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("优惠券编码")
    private String couponNo;

    @ApiModelProperty("优惠券名称")
    private String couponName;

    @ApiModelProperty("优惠券类型:1.无门槛券2.满减券")
    private Integer couponType;

    @ApiModelProperty("优惠券面值")
    private BigDecimal faceValue;

    @ApiModelProperty("优惠券满减条件")
    private BigDecimal conditionValue;

    @ApiModelProperty("(废弃)发放数量")
    private Integer grantNum;

    @ApiModelProperty("(废弃)每人限领")
    private Integer limitNum;

    @ApiModelProperty("领取开始时间")
    private Date drawStartTime;

    @ApiModelProperty("领取结束时间")
    private Date drawEndTime;

    @ApiModelProperty("生效开始时间")
    private Date effectiveStartTime;

    @ApiModelProperty("生效结束时间")
    private Date effectiveEndTime;

    @ApiModelProperty("使用场景:1.换电套餐2.救援订单3.租赁套餐 4.商城购物")
    private Integer usedScene;

    @ApiModelProperty("领取人群:1.全体用户2.新用户3.老用户4电池回购")
    private Integer drawCrowd;

    @ApiModelProperty("优惠券说明")
    private String couponDes;

    @ApiModelProperty("店铺id ,使用场景 4商城购物 需要 ")
    private Integer merchantsId;

    @ApiModelProperty("是否启用:   0.否1.是(默认)")
    private Integer isEnabled;

    @ApiModelProperty("是否删除：0.否(默认)1.是")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date modifyTime;

}
